package controllers;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class LogoutController extends HttpServlet {

    protected void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {

        HttpSession sessie = request.getSession();
        request.logout();
        sessie.invalidate();

        RequestDispatcher dispatcher = request.getRequestDispatcher("/visitor_home.jsp");
        dispatcher.forward(request, response);




    }
}
